import $http from './request';

const URL_PREFIX = '/driver';

export const test = () => {
  return $http.$get(URL_PREFIX + "/test", {}, {})
}

// 获取所有驱动类型
export const getAllDriverType = () => {
  return $http.$get(URL_PREFIX + '/getAllDriverType', {}, {});
}

// 新增驱动
export const saveDriver = (params) => {
  return $http.$post(URL_PREFIX + '/save', params, {});
}

// 分页列表
export const pageList = (params) => {
  return $http.$post(URL_PREFIX + '/pageList', params, {});
}

// 列表
export const listAll = () => {
  return $http.$get(URL_PREFIX + "/listAll", {}, {});
}